package 语言特性学习;

import com.alibaba.fastjson.JSON;

public class 数组和多维数组 {

    public static void main2(String[] args) {
        String[] array = new String[2];
        array[0] = "KEY";
        array[1] = "VALUE";
        String[][] arrays = new String[1][2];
        arrays[0] = array;

        System.out.println(JSON.toJSONString(arrays));
    }

    public static float calBMI(float weight,float height){
        float bmi = ((weight / height) / height);
        return bmi * 10000;
    }


    public static void main(String[] args) {
        System.out.println(calBMI(55,155));
    }


}
